<?php  

class News_UI_GroupDialog
{
    var $Controller; 
    var $StartId; 
    function News_UI_GroupDialog($controller, $load = true)
    {
        $this->Controller = $controller;
        $this->groupName  = $this->Controller->Settings['group'];  
        $this->StartId    = $this->Controller->Settings['more'];  
    } 
    
    function Display ()
    {
        $htm = array();
        $num = array (25000,50000,100000);
        $htm[] = "<form method='post' action='/ui/commandhandler/request/renew/group/{$this->groupName}/page/1'>";
        $htm[] = "Load {$this->groupName}:";
        $htm[] = "  Get next";
        foreach ($num as $n)
        {
            $sel = $n == DOWNLOAD_PACKET_VOLUME ? 'checked' : '';
            $htm[] = "  <input name='count' type='radio' {$sel} value='{$n}'/>{$n}";
        }
        $htm[] = "  starting at article <input type='text' name='more' value='{$this->StartId}'/>";
        $htm[] = "  <input type='button' onclick='history.back()' value='Cancel'/> 	<input type='submit' value='Begin'/>";
        $htm[] = "</form>";
        echo implode ('<br/>', $htm);
    }
}